﻿<src:WpfConfiguration x:Class="Total_Mayhem.Networking.NetworkEventConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             Width="400"
             mc:Ignorable="d" 
             d:DesignHeight="300">
    <src:WpfConfiguration.Resources>

    </src:WpfConfiguration.Resources>

    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="133" />
            <ColumnDefinition Width="207" />
            <ColumnDefinition Width="60" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" TextAlignment="Center" Margin="0,10,0,10" TextWrapping="Wrap">
			Monitors when the specified computer or IP Address <Run Name="runVerb">joins</Run> your local network (using Ping test).
        </TextBlock>

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1">Computer Name or IP:</TextBlock>
        <TextBox Name="textBoxName" TextChanged="Name_TextChanged" Grid.Column="1" Grid.Row="1" />
        <Button Name="btnTest" Margin="5,0,0,0" Width="50" Click="btnTest_Click" Grid.Column="2" Grid.Row="1" IsEnabled="False">Test</Button>

        <TextBlock Style="{StaticResource ConfigErrorMessage}" Name="textInvalid" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="2" TextAlignment="Center">Computer Name or IP Address is invalid</TextBlock>

        <TextBlock Grid.Column="0" Grid.Row="3" Style="{StaticResource ConfigLabel}" >Check Interval:</TextBlock>
        <ComboBox Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center" Name="cmbInterval" Width="120" SelectionChanged="cmbInterval_SelectionChanged" >
            <ComboBoxItem Tag="5" Content="5 Seconds"/>
            <ComboBoxItem Tag="15" Content="15 Seconds"/>
            <ComboBoxItem Tag="30" Content="30 Seconds"/>
            <ComboBoxItem IsSelected="True" Tag="60" Content="1 Minute"/>
            <ComboBoxItem Tag="120" Content="2 Minutes"/>
            <ComboBoxItem Tag="300" Content="5 Minutes"/>
            <ComboBoxItem Tag="600" Content="10 Minutes"/>
            <ComboBoxItem Tag="1800" Content="30 Minutes"/>
        </ComboBox>
        <TextBlock Grid.Column="0" Grid.Row="4" Style="{StaticResource ConfigLabel}" Visibility="Collapsed">Max Wait for Response:</TextBlock>
        <ComboBox Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center" Name="cmbWait" Width="120" SelectionChanged="cmbWait_SelectionChanged" Visibility="Collapsed">
            <ComboBoxItem Tag="50" Content="50 MilliSeconds"/>
            <ComboBoxItem Tag="250" Content="250 MilliSeconds"/>
            <ComboBoxItem Tag="500" Content="0.5 Seconds"/>
            <ComboBoxItem IsSelected="True" Tag="1000" Content="1 Second"/>
            <ComboBoxItem Tag="3000" Content="3 Seconds"/>
        </ComboBox>
    </Grid>
</src:WpfConfiguration>
